{smcl}
{com}{sf}{ul off}{txt}{.-}
      name:  {res}<unnamed>
       {txt}log:  {res}/Users/rlsigman/Dropbox/Upload/replication_main.smcl
  {txt}log type:  {res}smcl
 {txt}opened on:  {res} 4 Sep 2017, 13:04:09
{txt}
{com}. use "egal_data.dta"
{txt}(V-Dem Country-Year Dataset + Others v6.2)

{com}. 
. *generate standardized measures (0-1) scale
. 
. *gen e_fh_status_st = (e_fh_status-1)/(3-1)
. gen e_fh_cl_st = (e_fh_cl-1)/(7-1)
{txt}(10,398 missing values generated)

{com}. gen e_polity2_st = (e_polity2 +10)/(10+10)
{txt}(5,449 missing values generated)

{com}. gen v2clacjust_st = (v2clacjust + 3.019201)/(3.471141+3.019201)
{txt}(494 missing values generated)

{com}. gen v2clacjust_lowst = (v2clacjust_codelow + 3.892406) / (2.766015+3.892406)
{txt}(494 missing values generated)

{com}. gen v2clacjust_highst = (v2clacjust_codehigh + 2.280959) / (4.064263 + 2.280959)
{txt}(494 missing values generated)

{com}. gen v2clsocgrp_st = (v2clsocgrp + 3.147822)/( 3.331509 + 3.147822)
{txt}(55 missing values generated)

{com}. gen v2clsocgrp_lowst = (v2clsocgrp_codelow + 4.006242)/(2.634023+4.006242)
{txt}(55 missing values generated)

{com}. gen v2clsocgrp_highst = (v2clsocgrp_codehigh + 2.499701)/(3.970373 +2.499701)
{txt}(55 missing values generated)

{com}. gen v2peedueq_st = (v2peedueq + 3.142996)/(3.650894 + 3.142996)
{txt}(55 missing values generated)

{com}. gen v2peedueq_lowst = (v2peedueq_codelow + 3.800937)/ (2.844435 + 3.800937)
{txt}(55 missing values generated)

{com}. gen v2peedueq_highst = (v2peedueq_codehigh +2.413359)/ (4.348349 + 2.413359)
{txt}(55 missing values generated)

{com}. gen v2pehealth_st = (v2pehealth + 3.142996)/ (3.650894 +3.142996)
{txt}(55 missing values generated)

{com}. gen v2pehealth_lowst = (v2pehealth_codelow + 3.920346)/(3.2853 + 3.920346)
{txt}(55 missing values generated)

{com}. gen v2pehealth_highst = (v2pehealth_codehigh +2.51193)/(4.348802 + 2.51193)
{txt}(55 missing values generated)

{com}. gen v2pepwrsoc_st = (v2pepwrsoc + 3.006994)/(3.31124 + 3.006994)
{txt}(55 missing values generated)

{com}. gen v2pepwrsoc_highst = (v2pepwrsoc_codehigh + 2.319493)/(3.938705+2.319493)
{txt}(55 missing values generated)

{com}. gen v2pepwrsoc_lowst = (v2pepwrsoc_codelow + 3.738616)/(2.428379 + 3.738616)
{txt}(55 missing values generated)

{com}. gen v2pepwrgen_st = (v2pepwrgen + 2.981764)/(4.196704 +2.981764)
{txt}(55 missing values generated)

{com}. gen v2pepwrgen_highst = (v2pepwrgen_codehigh + 2.242911)/(4.885439+ 2.242911)
{txt}(55 missing values generated)

{com}. gen v2pepwrgen_lowst = (v2pepwrgen_codelow + 3.788944)/ (3.47517 + 3.788944)
{txt}(55 missing values generated)

{com}. 
. *reverse freedom house 
. gen e_fh_cl_st_rev = 1-e_fh_cl_st
{txt}(10,398 missing values generated)

{com}. 
. 
. collapse e_fh_cl_st e_fh_cl_st_rev e_polity2_st v2x_polyarchy v2clacjust_st v2clacjust_lowst v2clacjust_highst v2clsocgrp_st v2clsocgrp_highst ///
> v2clsocgrp_lowst v2peedueq_st v2peedueq_lowst v2peedueq_highst v2pehealth_st v2pehealth_highst v2pehealth_lowst v2pepwrsoc_st v2pepwrsoc_highst v2pepwrsoc_lowst v2pepwrgen_st ///
> v2pepwrgen_highst v2pepwrgen_lowst, by(year)
{txt}
{com}. 
. label var v2clacjust_st "Civil Liberties Across Socio-Economic Class (V-Dem)"
{txt}
{com}. label var v2clsocgrp_st "Civil Liberties Across Social Groups (V-Dem)"
{txt}
{com}. label var e_fh_cl_st_rev "Freedom House Civil Liberties (reverse scale)"
{txt}
{com}.  label var v2pepwrgen_st "Power Distributed by Gender (V-Dem)"
{txt}
{com}.  label var v2pepwrsoc_st "Power Distributed by Social Group (V-Dem)"
{txt}
{com}.  label var e_polity2_st "Polity2"
{txt}
{com}. 
. *Figure 1: Freedom House, Civil Liberties equality
. twoway rarea v2clacjust_highst v2clacjust_lowst year if year>1970 & year<2013, color(gs7) || ///
>  rarea v2clsocgrp_highst v2clsocgrp_lowst year if year>1970 & year<2013, color(gs11)|| ///
>  line v2clsocgrp_st year if year>1970 & year<2013, lcolor(black) lwidth(medium) lpattern(longdash) || ///
>  line v2clacjust_st year if year>1970 & year<2013, lcolor(black) lwidth(thick) lpattern(dot)  || ///
>  line e_fh_cl_st_rev year if year>1970 & year<2012, lcolor(black) lwidth(medium) legend(order(3 4 5)) ysc(r(.2 .8)) graphregion(fcolor(white))
{res}{txt}
{com}.  graph save Graph "Figure1.gph", replace
{res}{txt}(file Figure1.gph saved)

{com}.  
. 
.  ****>Additional formatting in Graph Editor
.  
. *Figure 2: Polity, Power distribution by social group/gender
. twoway rarea v2pepwrsoc_highst v2pepwrsoc_lowst year if year>1945 & year<2013, color(gs7)|| ///
>  rarea v2pepwrgen_highst v2pepwrgen_lowst year if year>1945 & year<2013, color(gs11)|| ///
>  line v2pepwrsoc_st year if year>1945 & year<2013, lcolor(black) lwidth(medium) lpattern(longdash) || ///
>  line v2pepwrgen_st year if year>1945 & year<2013, lcolor(black) lwidth(thick) lpattern(dot) || ///
>  line e_polity2_st year if year>1945 & year<2013, lcolor(black) lwidth(medium) legend(order(3 4 5)) ysc(r(.2 .8)) graphregion(fcolor(white))
{res}{txt}
{com}.  graph save Graph "Figure2.gph", replace
{res}{txt}(file Figure2.gph saved)

{com}.  
.  ****>Additional formatting in Graph Editor
. 
. 
. 
.  ***Table 1***
. 
. clear
{txt}
{com}. use "egal_data.dta"
{txt}(V-Dem Country-Year Dataset + Others v6.2)

{com}. 
. tabstat v2clacjust v2clsocgrp v2clsnlpct v2dlencmps v2dlunivl v2peedueq v2pehealth v2pepwrses v2pepwrsoc v2pepwrgen, stat(mean sd n) col(stat)

{txt}{ralign 12:variable} {...}
{c |}      mean        sd         N
{hline 13}{c +}{hline 30}
{ralign 12:v2clacjust} {...}
{c |}{...}
 {res}  .068911   1.50394     16181
{txt}{ralign 12:v2clsocgrp} {...}
{c |}{...}
 {res} .0344951  1.472311     16620
{txt}{ralign 12:v2clsnlpct} {...}
{c |}{...}
 {res} 42.69008  20.64179     15408
{txt}{ralign 12:v2dlencmps} {...}
{c |}{...}
 {res} .0151709  1.483721     16620
{txt}{ralign 12:v2dlunivl} {...}
{c |}{...}
 {res}-.1738843  1.471403     16620
{txt}{ralign 12:v2peedueq} {...}
{c |}{...}
 {res}-.3453781  1.631322     16620
{txt}{ralign 12:v2pehealth} {...}
{c |}{...}
 {res}-.2358338  1.596879     16620
{txt}{ralign 12:v2pepwrses} {...}
{c |}{...}
 {res}-.4047361  1.447724     16620
{txt}{ralign 12:v2pepwrsoc} {...}
{c |}{...}
 {res}-.2068187  1.515784     16620
{txt}{ralign 12:v2pepwrgen} {...}
{c |}{...}
 {res}-.7928247  1.321633     16620
{txt}{hline 13}{c BT}{hline 30}

{com}. 
. ***Table 2***
. tabstat v2xeg_eqprotec v2xeg_eqdr v2xeg_eqacc v2x_egal_small v2x_polyarchy v2x_egaldem_small, stat(mean sd min max n) col(stat)

{txt}{ralign 12:variable} {...}
{c |}      mean        sd       min       max         N
{hline 13}{c +}{hline 50}
{ralign 12:v2xeg_eqpr~c} {...}
{c |}{...}
 {res} .4995443  .2889793  .0205938   .990673     14969
{txt}{ralign 12:v2xeg_eqdr} {...}
{c |}{...}
 {res} .4878866  .2965455  .0384339  .9910558     16620
{txt}{ralign 12:v2xeg_eqacc} {...}
{c |}{...}
 {res} .4946037  .2915105  .0227439  .9965216     16620
{txt}{ralign 12:v2x_egal_s~l} {...}
{c |}{...}
 {res}  .483112  .2663277  .0563281  .9902609     14969
{txt}{ralign 12:v2x_polyar~y} {...}
{c |}{...}
 {res} .3212451  .2814114  .0084127  .9584104     16259
{txt}{ralign 12:v2x_egalde~l} {...}
{c |}{...}
 {res}  .247532  .2299682  .0166321  .9193599     14643
{txt}{hline 13}{c BT}{hline 50}

{com}. 
. ***Table 3***
. **See V-Dem Methodology and Codebook at www.v-dem.net
. 
. ***Table 4***
. pwcorr v2x_egaldem_small v2x_polyarchy v2x_egal_small v2xeg_eqprotec v2xeg_eqdr v2xeg_eqacc, obs sig

             {txt}{c |} ~m_small v2x_po~y ~l_small v2xeg~ec v2xeg_~r v2xeg~cc
{hline 13}{c +}{hline 54}
v2x_egalde~l {c |} {res}  1.0000 
             {txt}{c |}
             {c |}{res}    14643
             {txt}{c |}
v2x_polyar~y {c |} {res}  0.9544   1.0000 
             {txt}{c |}{res}   0.0000
             {txt}{c |}{res}    14643    16259
             {txt}{c |}
v2x_egal_s~l {c |} {res}  0.8573   0.7465   1.0000 
             {txt}{c |}{res}   0.0000   0.0000
             {txt}{c |}{res}    14643    14643    14969
             {txt}{c |}
v2xeg_eqpr~c {c |} {res}  0.7756   0.6610   0.9200   1.0000 
             {txt}{c |}{res}   0.0000   0.0000   0.0000
             {txt}{c |}{res}    14643    14643    14969    14969
             {txt}{c |}
  v2xeg_eqdr {c |} {res}  0.7864   0.6681   0.9275   0.7838   1.0000 
             {txt}{c |}{res}   0.0000   0.0000   0.0000   0.0000
             {txt}{c |}{res}    14643    16259    14969    14969    16620
             {txt}{c |}
 v2xeg_eqacc {c |} {res}  0.8115   0.7384   0.9173   0.7596   0.7882   1.0000 
             {txt}{c |}{res}   0.0000   0.0000   0.0000   0.0000   0.0000
             {txt}{c |}{res}    14643    16259    14969    14969    16620    16620
             {txt}{c |}

{com}. 
. ***Table 5***
. 
. 
. ***Table 6***
. 
. ***Table 7***
. 
. 
. ***Figures 3, 4 and 5***
. clear
{txt}
{com}. use "egal_data.dta"
{txt}(V-Dem Country-Year Dataset + Others v6.2)

{com}. 
. *1990-2012
. 
. drop if year< 1990 
{txt}(12,555 observations deleted)

{com}. drop if year>2012
{txt}(302 observations deleted)

{com}. collapse v2x_egaldem_small v2x_egal_small v2xeg_eqprotec v2xeg_eqdr v2xeg_eqacc v2x_polyarchy, by(country_text_id)
{txt}
{com}. save "egal_data_collapsed.dta", replace
{txt}file egal_data_collapsed.dta saved

{com}. 
. label var v2x_egal_small "Egalitarian Component"
{txt}
{com}. label var v2x_polyarchy "Electoral Democracy (Polyarchy)"
{txt}
{com}. label var v2xeg_eqprotec "Equal Protection"
{txt}
{com}. label var v2xeg_eqdr "Equal Distribution"
{txt}
{com}. label var v2xeg_eqacc "Equal Access"
{txt}
{com}. 
. **Figure 3**
. *Egal Component and Polyarchy
. graph twoway (scatter v2x_egal_small v2x_polyarchy, mlabel(country_text_id) mcolor(black) mlabcolor(black)) (lfit v2x_egal_small v2x_polyarchy, lcolor(black)), graphregion(fcolor(white)) ytitle(Egalitarian Component) legend(off)
{res}{txt}
{com}. graph save Graph "Figure3.gph", replace
{res}{txt}(file Figure3.gph saved)

{com}. 
. **Figure 4**
. *Equal Protection vs. Equal Distribution Scatter Plot 1990-2012
. graph twoway (scatter v2xeg_eqdr v2xeg_eqprotec, mlabel(country_text_id) mcolor(black) mlabcolor(black)) (lfit v2xeg_eqdr v2xeg_eqprotec, lcolor(black)), graphregion(fcolor(white)) ytitle(Equal Distribution) xtitle(Equal Protection) legend(off)
{res}{txt}
{com}. graph save Graph "Figure4.gph", replace
{res}{txt}(file Figure4.gph saved)

{com}. 
. **Figure 5**
. *Equal Distribution vs. Equal Access Scatter Plot 1990-2012
. graph twoway (scatter v2xeg_eqacc v2xeg_eqdr, mlabel(country_text_id) mcolor(black) mlabcolor(black)) (lfit v2xeg_eqacc v2xeg_eqdr, lcolor(black)),  graphregion(fcolor(white)) ytitle(Equal Access) xtitle(Equal Distribution) legend(off)
{res}{txt}
{com}. graph save Graph "Figure5.gph", replace
{res}{txt}(file Figure5.gph saved)

{com}. 
. 
. 
. ***Figures 6 and 7***
. clear
{txt}
{com}. use "egal_data.dta"
{txt}(V-Dem Country-Year Dataset + Others v6.2)

{com}. 
. label var v2x_egaldem_big "Egalitarian Democracy"
{txt}
{com}. label var v2x_egaldem_big_codehigh "Upper Bound"
{txt}
{com}. label var v2x_egaldem_big_codehigh "Lower Bound"
{txt}
{com}. 
. **Figure 6**
. graph twoway (rarea v2x_egaldem_big_codehigh v2x_egaldem_big_codelow year if country_id == 5 & year<2013, color(gs13)) || ///
>  (rarea v2x_egaldem_big_codehigh v2x_egaldem_big_codelow year if country_id == 72 & year<2013, color(gs9)) || ///
>  (rarea v2x_egaldem_big_codehigh v2x_egaldem_big_codelow year if country_id == 155 & year<2013, color(gs13)) || ///
>  (rarea v2x_egaldem_big_codehigh v2x_egaldem_big_codelow year if country_id == 45 & year<2013, color (gs9)) || ///
>  (line v2x_egaldem_big year if country_id == 5 & year<2013, lcolor(black) lpattern(dash_dot_dot)) || ///
>  (line v2x_egaldem_big year if country_id == 72 & year<2013, lcolor(black) lpattern(longdash))|| ///
>  (line v2x_egaldem_big year if country_id == 155 & year<2013, lcolor(black) lwidth(thick) lpattern(tight_dot)) || ///
>  (line v2x_egaldem_big year if country_id == 45 & year<2013, lcolor(black) lpattern(shortdash)), legend(order(5 "Sweden" 6 "Chile" 7 "Cuba" 8 "Nigeria") region(lstyle(none))) graphregion(fcolor(white))
{res}{txt}
{com}.  graph save Graph "Figure6.gph", replace
{res}{txt}(file Figure6.gph saved)

{com}. 
. **Additional formatting in Graph Editor
. 
. **Figure 7 US Equal Protection & Equal Distribution over time**
. graph twoway (line v2xeg_eqprotec year if country_id == 20 & year < 2013, lcolor(black) lpattern(dash)) || ///
> (line v2xeg_eqacc year if country_id == 20 & year < 2013, lwidth(medium) lcolor(black)) || ///
> (line v2xeg_eqdr year if country_id == 20 & year < 2013, lcolor(black) lwidth(thick) lpattern(tightdot)) || ///
> , graphregion(fcolor(white)) legend(order(1 "Equal Protection" 2 "Equal Access" 3 "Equal Distribution")) xlabel(1900(20)2010) 
{p 0 4 2}
{txt}(note:  named style
tightdot not found in class
linepattern,  default attributes used)
{p_end}
{p 0 4 2}
{txt}(note:  named style
tightdot not found in class
linepattern,  default attributes used)
{p_end}
{res}{txt}
{com}. graph save Graph "Figure7.gph", replace
{res}{txt}(file Figure7.gph saved)

{com}. 
. 
. ***Tables 8 & 9***
. 
. 
. **Table 8: Correlations with other V-Dem Indices**
. pwcorr v2xeg_eqprotec v2xeg_eqdr v2xeg_eqacc v2x_egal_small v2x_egaldem_small v2x_polyarchy v2x_partip v2x_liberal v2xdl_delib v2x_corr v2x_cspart v2x_freexp v2x_gender v2x_suffr, obs sig

             {txt}{c |} v2xeg~ec v2xeg_~r v2xeg~cc ~l_small ~m_small v2x_po~y v2x_pa~p
{hline 13}{c +}{hline 63}
v2xeg_eqpr~c {c |} {res}  1.0000 
             {txt}{c |}
             {c |}{res}    14969
             {txt}{c |}
  v2xeg_eqdr {c |} {res}  0.7838   1.0000 
             {txt}{c |}{res}   0.0000
             {txt}{c |}{res}    14969    16620
             {txt}{c |}
 v2xeg_eqacc {c |} {res}  0.7596   0.7882   1.0000 
             {txt}{c |}{res}   0.0000   0.0000
             {txt}{c |}{res}    14969    16620    16620
             {txt}{c |}
v2x_egal_s~l {c |} {res}  0.9200   0.9275   0.9173   1.0000 
             {txt}{c |}{res}   0.0000   0.0000   0.0000
             {txt}{c |}{res}    14969    14969    14969    14969
             {txt}{c |}
v2x_egalde~l {c |} {res}  0.7756   0.7864   0.8115   0.8573   1.0000 
             {txt}{c |}{res}   0.0000   0.0000   0.0000   0.0000
             {txt}{c |}{res}    14643    14643    14643    14643    14643
             {txt}{c |}
v2x_polyar~y {c |} {res}  0.6610   0.6681   0.7384   0.7465   0.9544   1.0000 
             {txt}{c |}{res}   0.0000   0.0000   0.0000   0.0000   0.0000
             {txt}{c |}{res}    14643    16259    16259    14643    14643    16259
             {txt}{c |}
  v2x_partip {c |} {res}  0.6033   0.6110   0.6937   0.6922   0.8236   0.8739   1.0000 
             {txt}{c |}{res}   0.0000   0.0000   0.0000   0.0000   0.0000   0.0000
             {txt}{c |}{res}    14960    16611    16611    14960    14634    16250    16660
             {txt}{c |}
 v2x_liberal {c |} {res}  0.6147   0.5796   0.6044   0.6482   0.8069   0.8322   0.7691 
             {txt}{c |}{res}   0.0000   0.0000   0.0000   0.0000   0.0000   0.0000   0.0000
             {txt}{c |}{res}    14969    16620    16620    14969    14643    16259    16611
             {txt}{c |}
 v2xdl_delib {c |} {res}  0.6389   0.6525   0.7167   0.7240   0.8381   0.8839   0.8489 
             {txt}{c |}{res}   0.0000   0.0000   0.0000   0.0000   0.0000   0.0000   0.0000
             {txt}{c |}{res}    14969    16511    16511    14969    14643    16151    16502
             {txt}{c |}
    v2x_corr {c |} {res} -0.3610  -0.3720  -0.3068  -0.3526  -0.4299  -0.3734  -0.2959 
             {txt}{c |}{res}   0.0000   0.0000   0.0000   0.0000   0.0000   0.0000   0.0000
             {txt}{c |}{res}    14868    16519    16519    14868    14542    16158    16510
             {txt}{c |}
  v2x_cspart {c |} {res}  0.6071   0.5903   0.7009   0.6846   0.8263   0.8753   0.9026 
             {txt}{c |}{res}   0.0000   0.0000   0.0000   0.0000   0.0000   0.0000   0.0000
             {txt}{c |}{res}    14881    16463    16463    14881    14596    16143    16454
             {txt}{c |}
  v2x_freexp {c |} {res}  0.5372   0.5113   0.6105   0.5986   0.8019   0.8894   0.8244 
             {txt}{c |}{res}   0.0000   0.0000   0.0000   0.0000   0.0000   0.0000   0.0000
             {txt}{c |}{res}    14618    16265    16265    14618    14343    15955    16256
             {txt}{c |}
  v2x_gender {c |} {res}  0.7209   0.7596   0.8309   0.8238   0.8410   0.7897   0.7277 
             {txt}{c |}{res}   0.0000   0.0000   0.0000   0.0000   0.0000   0.0000   0.0000
             {txt}{c |}{res}    10321    11672    11672    10321    10097    11413    11672
             {txt}{c |}
   v2x_suffr {c |} {res}  0.5693   0.6131   0.6994   0.6778   0.5689   0.5879   0.5582 
             {txt}{c |}{res}   0.0000   0.0000   0.0000   0.0000   0.0000   0.0000   0.0000
             {txt}{c |}{res}    14966    16617    16617    14966    14643    16259    16612
             {txt}{c |}

             {c |} v2x_li~l v2xdl_~b v2x_corr v2x_cs~t v2x_fr~p v2x_ge~r v2x_su~r
{hline 13}{c +}{hline 63}
 v2x_liberal {c |} {res}  1.0000 
             {txt}{c |}
             {c |}{res}    16620
             {txt}{c |}
 v2xdl_delib {c |} {res}  0.8355   1.0000 
             {txt}{c |}{res}   0.0000
             {txt}{c |}{res}    16511    16511
             {txt}{c |}
    v2x_corr {c |} {res} -0.5706  -0.3383   1.0000 
             {txt}{c |}{res}   0.0000   0.0000
             {txt}{c |}{res}    16519    16410    16519
             {txt}{c |}
  v2x_cspart {c |} {res}  0.8221   0.8733  -0.3253   1.0000 
             {txt}{c |}{res}   0.0000   0.0000   0.0000
             {txt}{c |}{res}    16463    16423    16362    16463
             {txt}{c |}
  v2x_freexp {c |} {res}  0.8652   0.8713  -0.3384   0.8836   1.0000 
             {txt}{c |}{res}   0.0000   0.0000   0.0000   0.0000
             {txt}{c |}{res}    16265    16160    16164    16153    16265
             {txt}{c |}
  v2x_gender {c |} {res}  0.6917   0.7445  -0.3243   0.7600   0.6817   1.0000 
             {txt}{c |}{res}   0.0000   0.0000   0.0000   0.0000   0.0000
             {txt}{c |}{res}    11672    11632    11672    11672    11646    11672
             {txt}{c |}
   v2x_suffr {c |} {res}  0.3081   0.5414   0.0961   0.5091   0.3928   0.5781   1.0000 
             {txt}{c |}{res}   0.0000   0.0000   0.0000   0.0000   0.0000   0.0000
             {txt}{c |}{res}    16617    16508    16516    16460    16262    11670    16627
             {txt}{c |}

{com}. 
. **Table 9: Correlations with Other Measures***
. pwcorr v2xeg_eqprotec v2xeg_eqdr v2xeg_eqacc v2x_egal_small v2x_egaldem_small e_fh_cl e_fh_pr worker_ciri e_peedgini e_peaveduc e_peinfmor nresource_tax_inc_sc e_migdppc, obs sig

             {txt}{c |} v2xeg~ec v2xeg_~r v2xeg~cc ~l_small ~m_small  e_fh_cl  e_fh_pr
{hline 13}{c +}{hline 63}
v2xeg_eqpr~c {c |} {res}  1.0000 
             {txt}{c |}
             {c |}{res}    14969
             {txt}{c |}
  v2xeg_eqdr {c |} {res}  0.7838   1.0000 
             {txt}{c |}{res}   0.0000
             {txt}{c |}{res}    14969    16620
             {txt}{c |}
 v2xeg_eqacc {c |} {res}  0.7596   0.7882   1.0000 
             {txt}{c |}{res}   0.0000   0.0000
             {txt}{c |}{res}    14969    16620    16620
             {txt}{c |}
v2x_egal_s~l {c |} {res}  0.9200   0.9275   0.9173   1.0000 
             {txt}{c |}{res}   0.0000   0.0000   0.0000
             {txt}{c |}{res}    14969    14969    14969    14969
             {txt}{c |}
v2x_egalde~l {c |} {res}  0.7756   0.7864   0.8115   0.8573   1.0000 
             {txt}{c |}{res}   0.0000   0.0000   0.0000   0.0000
             {txt}{c |}{res}    14643    14643    14643    14643    14643
             {txt}{c |}
     e_fh_cl {c |} {res} -0.5390  -0.4844  -0.6027  -0.6091  -0.8484   1.0000 
             {txt}{c |}{res}   0.0000   0.0000   0.0000   0.0000   0.0000
             {txt}{c |}{res}     5596     6277     6277     5596     5584     6277
             {txt}{c |}
     e_fh_pr {c |} {res} -0.5096  -0.4625  -0.6114  -0.5932  -0.8509   0.9279   1.0000 
             {txt}{c |}{res}   0.0000   0.0000   0.0000   0.0000   0.0000   0.0000
             {txt}{c |}{res}     5596     6277     6277     5596     5584     6277     6277
             {txt}{c |}
 worker_ciri {c |} {res}  0.4215   0.3347   0.4432   0.4416   0.5498  -0.5901  -0.5859 
             {txt}{c |}{res}   0.0000   0.0000   0.0000   0.0000   0.0000   0.0000   0.0000
             {txt}{c |}{res}     3986     4459     4459     3986     3985     4307     4307
             {txt}{c |}
  e_peedgini {c |} {res} -0.4984  -0.6321  -0.5566  -0.6040  -0.6508   0.5589   0.5415 
             {txt}{c |}{res}   0.0000   0.0000   0.0000   0.0000   0.0000   0.0000   0.0000
             {txt}{c |}{res}     9766    10950    10950     9766     9590     4822     4822
             {txt}{c |}
  e_peaveduc {c |} {res}  0.6098   0.7669   0.6566   0.7276   0.7506  -0.6031  -0.5688 
             {txt}{c |}{res}   0.0000   0.0000   0.0000   0.0000   0.0000   0.0000   0.0000
             {txt}{c |}{res}    11929    13294    13294    11929    11682     5953     5953
             {txt}{c |}
  e_peinfmor {c |} {res} -0.4542  -0.6423  -0.5190  -0.5769  -0.6113   0.5490   0.5428 
             {txt}{c |}{res}   0.0000   0.0000   0.0000   0.0000   0.0000   0.0000   0.0000
             {txt}{c |}{res}     9972    11221    11221     9972     9794     5984     5984
             {txt}{c |}
nresource_~c {c |} {res}  0.5603   0.6989   0.5669   0.6722   0.6695  -0.6058  -0.5528 
             {txt}{c |}{res}   0.0000   0.0000   0.0000   0.0000   0.0000   0.0000   0.0000
             {txt}{c |}{res}     3620     4111     4111     3620     3618     4018     4018
             {txt}{c |}
   e_migdppc {c |} {res}  0.4418   0.5740   0.4482   0.5200   0.6652  -0.6467  -0.6089 
             {txt}{c |}{res}   0.0000   0.0000   0.0000   0.0000   0.0000   0.0000   0.0000
             {txt}{c |}{res}     9383    10444    10444     9383     9197     5116     5116
             {txt}{c |}

             {c |} worker~i e_peed~i e_peav~c e_pein~r nresou~c e_migd~c
{hline 13}{c +}{hline 54}
 worker_ciri {c |} {res}  1.0000 
             {txt}{c |}
             {c |}{res}     4459
             {txt}{c |}
  e_peedgini {c |} {res} -0.3073   1.0000 
             {txt}{c |}{res}   0.0000
             {txt}{c |}{res}     3720    10980
             {txt}{c |}
  e_peaveduc {c |} {res}  0.3459  -0.8721   1.0000 
             {txt}{c |}{res}   0.0000   0.0000
             {txt}{c |}{res}     4404    10980    13329
             {txt}{c |}
  e_peinfmor {c |} {res} -0.2851   0.6631  -0.7617   1.0000 
             {txt}{c |}{res}   0.0000   0.0000   0.0000
             {txt}{c |}{res}     4454     9165    10632    11224
             {txt}{c |}
nresource_~c {c |} {res}  0.4185  -0.6012   0.7058  -0.6364   1.0000 
             {txt}{c |}{res}   0.0000   0.0000   0.0000   0.0000
             {txt}{c |}{res}     3679     3245     4044     4066     4111
             {txt}{c |}
   e_migdppc {c |} {res}  0.4110  -0.5818   0.7635  -0.5977   0.6936   1.0000 
             {txt}{c |}{res}   0.0000   0.0000   0.0000   0.0000   0.0000
             {txt}{c |}{res}     3910     9038     9951     9287     3404    10445
             {txt}{c |}

{com}. 
. ***Table 10: Correlations of Egalitarian Index and Constituent Indicators
. pwcorr v2xeg_eqprotec v2xeg_eqdr v2xeg_eqacc v2x_egal_small v2x_egaldem_small v2clacjust v2clsocgrp v2clsnlpct v2dlencmps v2dlunivl v2peedueq v2pehealth v2pepwrses v2pepwrsoc v2pepwrgen, obs sig

             {txt}{c |} v2xeg~ec v2xeg_~r v2xeg~cc ~l_small ~m_small v2clac~t v2clso~p
{hline 13}{c +}{hline 63}
v2xeg_eqpr~c {c |} {res}  1.0000 
             {txt}{c |}
             {c |}{res}    14969
             {txt}{c |}
  v2xeg_eqdr {c |} {res}  0.7838   1.0000 
             {txt}{c |}{res}   0.0000
             {txt}{c |}{res}    14969    16620
             {txt}{c |}
 v2xeg_eqacc {c |} {res}  0.7596   0.7882   1.0000 
             {txt}{c |}{res}   0.0000   0.0000
             {txt}{c |}{res}    14969    16620    16620
             {txt}{c |}
v2x_egal_s~l {c |} {res}  0.9200   0.9275   0.9173   1.0000 
             {txt}{c |}{res}   0.0000   0.0000   0.0000
             {txt}{c |}{res}    14969    14969    14969    14969
             {txt}{c |}
v2x_egalde~l {c |} {res}  0.7756   0.7864   0.8115   0.8573   1.0000 
             {txt}{c |}{res}   0.0000   0.0000   0.0000   0.0000
             {txt}{c |}{res}    14643    14643    14643    14643    14643
             {txt}{c |}
  v2clacjust {c |} {res}  0.9753   0.7655   0.7683   0.8963   0.7553   1.0000 
             {txt}{c |}{res}   0.0000   0.0000   0.0000   0.0000   0.0000
             {txt}{c |}{res}    14969    16181    16181    14969    14643    16181
             {txt}{c |}
  v2clsocgrp {c |} {res}  0.8248   0.6717   0.6672   0.7732   0.6873   0.7395   1.0000 
             {txt}{c |}{res}   0.0000   0.0000   0.0000   0.0000   0.0000   0.0000
             {txt}{c |}{res}    14969    16620    16620    14969    14643    16181    16620
             {txt}{c |}
  v2clsnlpct {c |} {res} -0.6086  -0.5932  -0.4785  -0.6039  -0.6105  -0.5562  -0.4848 
             {txt}{c |}{res}   0.0000   0.0000   0.0000   0.0000   0.0000   0.0000   0.0000
             {txt}{c |}{res}    14969    15408    15408    14969    14643    14969    15408
             {txt}{c |}
  v2dlencmps {c |} {res}  0.6769   0.7185   0.7019   0.7605   0.6655   0.6718   0.5858 
             {txt}{c |}{res}   0.0000   0.0000   0.0000   0.0000   0.0000   0.0000   0.0000
             {txt}{c |}{res}    14969    16620    16620    14969    14643    16181    16620
             {txt}{c |}
   v2dlunivl {c |} {res}  0.6006   0.7026   0.6543   0.7053   0.5895   0.6154   0.5133 
             {txt}{c |}{res}   0.0000   0.0000   0.0000   0.0000   0.0000   0.0000   0.0000
             {txt}{c |}{res}    14969    16620    16620    14969    14643    16181    16620
             {txt}{c |}
   v2peedueq {c |} {res}  0.7281   0.9480   0.7519   0.8745   0.7536   0.7167   0.6488 
             {txt}{c |}{res}   0.0000   0.0000   0.0000   0.0000   0.0000   0.0000   0.0000
             {txt}{c |}{res}    14969    16620    16620    14969    14643    16181    16620
             {txt}{c |}
  v2pehealth {c |} {res}  0.7622   0.9692   0.7515   0.8962   0.7897   0.7530   0.6618 
             {txt}{c |}{res}   0.0000   0.0000   0.0000   0.0000   0.0000   0.0000   0.0000
             {txt}{c |}{res}    14969    16620    16620    14969    14643    16181    16620
             {txt}{c |}
  v2pepwrses {c |} {res}  0.7104   0.7405   0.9182   0.8494   0.7085   0.7418   0.5757 
             {txt}{c |}{res}   0.0000   0.0000   0.0000   0.0000   0.0000   0.0000   0.0000
             {txt}{c |}{res}    14969    16620    16620    14969    14643    16181    16620
             {txt}{c |}
  v2pepwrsoc {c |} {res}  0.6783   0.6814   0.8662   0.7982   0.7534   0.6685   0.6440 
             {txt}{c |}{res}   0.0000   0.0000   0.0000   0.0000   0.0000   0.0000   0.0000
             {txt}{c |}{res}    14969    16620    16620    14969    14643    16181    16620
             {txt}{c |}
  v2pepwrgen {c |} {res}  0.6150   0.6829   0.8560   0.7745   0.7395   0.6389   0.5922 
             {txt}{c |}{res}   0.0000   0.0000   0.0000   0.0000   0.0000   0.0000   0.0000
             {txt}{c |}{res}    14969    16620    16620    14969    14643    16181    16620
             {txt}{c |}

             {c |} v2clsn~t v2dlen~s v2dlun~l v2peed~q v2peh~th v2pepw~s v2pepw~c
{hline 13}{c +}{hline 63}
  v2clsnlpct {c |} {res}  1.0000 
             {txt}{c |}
             {c |}{res}    15408
             {txt}{c |}
  v2dlencmps {c |} {res} -0.5032   1.0000 
             {txt}{c |}{res}   0.0000
             {txt}{c |}{res}    15408    16620
             {txt}{c |}
   v2dlunivl {c |} {res} -0.3806   0.6882   1.0000 
             {txt}{c |}{res}   0.0000   0.0000
             {txt}{c |}{res}    15408    16620    16620
             {txt}{c |}
   v2peedueq {c |} {res} -0.5883   0.6382   0.6299   1.0000 
             {txt}{c |}{res}   0.0000   0.0000   0.0000
             {txt}{c |}{res}    15408    16620    16620    16620
             {txt}{c |}
  v2pehealth {c |} {res} -0.5750   0.6681   0.6420   0.8991   1.0000 
             {txt}{c |}{res}   0.0000   0.0000   0.0000   0.0000
             {txt}{c |}{res}    15408    16620    16620    16620    16620
             {txt}{c |}
  v2pepwrses {c |} {res} -0.4247   0.6823   0.6346   0.6996   0.7108   1.0000 
             {txt}{c |}{res}   0.0000   0.0000   0.0000   0.0000   0.0000
             {txt}{c |}{res}    15408    16620    16620    16620    16620    16620
             {txt}{c |}
  v2pepwrsoc {c |} {res} -0.4946   0.6058   0.5285   0.6781   0.6483   0.7047   1.0000 
             {txt}{c |}{res}   0.0000   0.0000   0.0000   0.0000   0.0000   0.0000
             {txt}{c |}{res}    15408    16620    16620    16620    16620    16620    16620
             {txt}{c |}
  v2pepwrgen {c |} {res} -0.3796   0.5946   0.5978   0.6625   0.6736   0.7038   0.6651 
             {txt}{c |}{res}   0.0000   0.0000   0.0000   0.0000   0.0000   0.0000   0.0000
             {txt}{c |}{res}    15408    16620    16620    16620    16620    16620    16620
             {txt}{c |}

             {c |} v2pepw~n
{hline 13}{c +}{hline 9}
  v2pepwrgen {c |} {res}  1.0000 
             {txt}{c |}
             {c |}{res}    16620
             {txt}{c |}

{com}. 
. ***Figures 8 and 9***
. collapse v2x_egaldem_small v2xeg_eqprotec v2xeg_eqdr v2xeg_eqacc v2x_egal_small v2x_liberal, by(year)
{txt}
{com}. 
. *Figure 8
. graph twoway (line v2x_egaldem_small year if year< 2013, lwidth(medium) lcolor(black)) || ///
> (line v2xeg_eqprotec year if year<2013, lcolor(black) lwidth(medium) lpattern(dash)) || ///
> (line v2xeg_eqdr year if year<2013, lcolor(black) lwidth(medium) lpattern(dot)) || ///
> (line v2xeg_eqacc year if year < 2013, lcolor(black) lwidth(medium) lpattern(dash_dot)), ///
> xlabel(1900(20)2000) graphregion(color(white)) legend(label(1 "Egal Democracy") label(2 "Equal Protection") ///
> label (3 "Equal Distribution") label(4 Equal Access))
{res}{txt}
{com}. graph save Graph "Figure8.gph", replace
{res}{txt}(file Figure8.gph saved)

{com}. *Some additional formatting in graph editor
. 
. *Figure 9
. graph twoway (line v2x_egal_small year if year> 1945 & year<2013, lwidth(thick) lcolor(black)) || ///
> (line v2x_liberal year if year> 1945 & year<2013, lwidth(thick) lcolor(black) lpattern(dash)), ///
> ylabel(0(.2).8) xlabel(1940(15)2015) graphregion(color(white)) legend(label(1 "Egalitarian Component") label(2 "Liberal Component"))
{res}{txt}
{com}. graph save Graph "Figure9.gph", replace
{res}{txt}(file Figure9.gph saved)

{com}. *Some additional formatting in graph editor
. 
. 
. log close
      {txt}name:  {res}<unnamed>
       {txt}log:  {res}/Users/rlsigman/Dropbox/Upload/replication_main.smcl
  {txt}log type:  {res}smcl
 {txt}closed on:  {res} 4 Sep 2017, 13:04:41
{txt}{.-}
{smcl}
{txt}{sf}{ul off}